package com.offcn.service.impl;

import com.offcn.entity.User;
import com.offcn.mapper.UserMapper;
import com.offcn.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public int insertUser( String uname,String ucomname, int utype, String ucity,String utel, String uaddress, String umail, String upwd, String uremark) {
        return userMapper.insertUser( uname, ucomname,utype, ucity, utel, uaddress, umail, upwd, uremark);
    }

    @Override
    public User selectByUser(String uname, String upwd) {
        return userMapper.selectByUser(uname,upwd);
    }
}
